<table id="table_note" width="100%"  cellspacing="1" class="sf_admin_list" align="center">
	<tr>
		<th width="20%" scope="col">Content</th>
		<th width="10%" scope="col">Status</th>
		<th width="13%" scope="col">Alert date</th>
		<th width="13%" scope="col">Owner</th>
		<th width="5%" scope="col">Enabled</th>	
		<th width="5%" scope="col">Action</th>				
	</tr>
	<?php foreach($alerts as $alert): ?>
		<?php $counter ++; ?>
		<?php $class = $alert->getAlertDegree(); ?>
		<tr>
			<td><?php echo input_tag('Name'.$counter, $alert->getName(), array('class' => $class,
														'id' => 'alert'.$counter.'_name', 'size' => 30))?>
			</td>
			<td>
			<?php echo select_tag('Status'.$counter, objects_for_select($status, 'getId', 'getName',$alert->getStatus()), 
				array('id' => 'alert'.$counter.'_status', 'class' => $class)); ?> 
			</td>
			<td><?php echo object_input_date_tag($alert, 'getAlertDate', array('format' => 'd', 'calendar_button_img' => '/sf/sf_admin/images/date.png',	'rich' => 'true', 'name' => 'AlertDate'.$counter, 'id' => 'alert'.$counter.'_alert_date','class' => $class)) ?></td>
			<td><?php echo object_input_date_tag($alert, 'getDueDate', array('format' => 'd', 'calendar_button_img' => '/sf/sf_admin/images/date.png','rich' => 'true', 'name' => 'DueDate'.$counter, 'id' => 'alert'.$counter.'_due_date','class' => $class)); ?></td>
			<td><?php echo object_input_date_tag($alert, 'getDoneDate', array('format' => 'd', 'calendar_button_img' => '/sf/sf_admin/images/date.png',
				'rich' => 'true', 'name' => 'DoneDate'.$counter, 'id' => 'alert'.$counter.'_done_date','class' => $class)); ?></td>
			<td> <?php echo select_tag('Owner'. $counter, objects_for_select($subs,'getId', 'getFullName', $alert->getOwnerId()),
			array('class' => $class)) ?></td>
			
			<td>
			<?php echo object_checkbox_tag($alert, 'getEnable', 
				array('style' => 'text-align: center', 'name' => 'Enable'.$counter, 'style' => 'color: black'))?></td>
			<td>
				<ul class="sf_admin_td_actions">
				  <li><?php echo link_to(image_tag('/sf/sf_admin/images/delete_icon.png', array('alt' => __('delete'), 'title' => __('delete'))), 'air_ticket/deleteAlert?id='.$sf_params->get('id').'&alert='.$alert->getId(), array (
					  'post' => true,
					  'confirm' => __('Are you sure?'),
					)) ?>
				  </li>
				</ul>
			</td>
		</tr>					  	
		<?php endforeach; ?>	
	<input type="hidden" name="counter" value="<?php echo $counter; ?>">
</table>